package cn.zktr.Personnel.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the per_ret_rfs database table.
 * 
 */
@Entity
@Table(name="per_ret_rfs")
@NamedQuery(name="PerRetRfs.findAll", query="SELECT p FROM PerRetRfs p")
public class PerRetRfs implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int rfsid;

	private String rfslel;

	private String rfsname;

	//bi-directional many-to-one association to PerRetRse
	@OneToMany(mappedBy="perRetRf")
	private List<PerRetRse> perRetRses;

	//bi-directional many-to-one association to PerRetWAlt
	@OneToMany(mappedBy="perRetRf")
	private List<PerRetWAlt> perRetWAlts;

	public PerRetRfs() {
	}

	public int getRfsid() {
		return this.rfsid;
	}

	public void setRfsid(int rfsid) {
		this.rfsid = rfsid;
	}

	public String getRfslel() {
		return this.rfslel;
	}

	public void setRfslel(String rfslel) {
		this.rfslel = rfslel;
	}

	public String getRfsname() {
		return this.rfsname;
	}

	public void setRfsname(String rfsname) {
		this.rfsname = rfsname;
	}

	public List<PerRetRse> getPerRetRses() {
		return this.perRetRses;
	}

	public void setPerRetRses(List<PerRetRse> perRetRses) {
		this.perRetRses = perRetRses;
	}

	public PerRetRse addPerRetRs(PerRetRse perRetRs) {
		getPerRetRses().add(perRetRs);
		perRetRs.setPerRetRf(this);

		return perRetRs;
	}

	public PerRetRse removePerRetRs(PerRetRse perRetRs) {
		getPerRetRses().remove(perRetRs);
		perRetRs.setPerRetRf(null);

		return perRetRs;
	}

	public List<PerRetWAlt> getPerRetWAlts() {
		return this.perRetWAlts;
	}

	public void setPerRetWAlts(List<PerRetWAlt> perRetWAlts) {
		this.perRetWAlts = perRetWAlts;
	}

	public PerRetWAlt addPerRetWAlt(PerRetWAlt perRetWAlt) {
		getPerRetWAlts().add(perRetWAlt);
		perRetWAlt.setPerRetRf(this);

		return perRetWAlt;
	}

	public PerRetWAlt removePerRetWAlt(PerRetWAlt perRetWAlt) {
		getPerRetWAlts().remove(perRetWAlt);
		perRetWAlt.setPerRetRf(null);

		return perRetWAlt;
	}

}